<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript">
if (window.testRunner)
    testRunner.useUnfortunateSynchronousResizeMode();

onload = function()
{
    window.resizeTo(250, window.innerHeight);
    window.scrollTo(-100000, 0);
    window.resizeTo(350, window.innerHeight);
}
</script>
</head>
    <body style="direction: rtl">
        <div style="whitespace:nowrap; width: 1000px; height: 4000px; border: 1px solid red;">
            BEGINddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddEND
        </div>
    </body>
</html>

